package com.leetao.netty.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author 菅江晖
 * @date 2021/4/15 - 15:54
 */
@ConfigurationProperties(prefix = "lee.netty")
@Component
public class NettyConfig {

    /**
     * Websocket Path
     */
    String wsPath = "/";


    /**
     * 9090
     */
    int port = 9090;



    /**
     * Max Content Length
     */
    int maxContentLength = 1024*1024*1024;


    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public int getMaxContentLength() {
        return maxContentLength;
    }

    public void setMaxContentLength(int maxContentLength) {
        this.maxContentLength = maxContentLength;
    }

    public String getWsPath() {
        return wsPath;
    }

    public void setWsPath(String websocketPath) {
        this.wsPath = websocketPath;
    }
}
